package cn.java79.quiz.entity;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
public class User implements Serializable {
    private long id;
    private String loginname;
    private String realname;
    private String email;
    private String phone;
    private String level="1";
    private int score=0;
    private String pass;
    private String headpic;
    public User(){

    }

    public User(String loginname, String realname, String email, String phone,  String pass) {
        this.loginname = loginname;
        this.realname = realname;
        this.email = email;
        this.phone = phone;
        this.pass = pass;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getHeadpic() {
        return headpic;
    }

    public void setHeadpic(String headpic) {
        this.headpic = headpic;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    @Override
    public String toString() {
        return "用户{" +
                "id=" + id +
                ", loginname='" + loginname + '\'' +
                ", realname='" + realname + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", level='" + level + '\'' +
                ", score=" + score +
                ", pass='" + pass + '\'' +
                '}';
    }
}
